//
//  GQProfileNearController.m
//  GuQu
//
//  Created by HELIUM STAR on 15/5/29.
//  Copyright (c) 2015年 HELIUM STAR. All rights reserved.
//

#import "GQProfileNearController.h"
#import "GQProfileNearCell.h"

@interface GQProfileNearController ()

@end

@implementation GQProfileNearController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"附近的人";
    [self.tableView registerClass:[GQProfileNearCell class] forCellReuseIdentifier:kFlag];
    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageWithOriginalName:@"distribute_back"] style:UIBarButtonItemStylePlain target:self action:@selector(backToPre)];
    [self setUpCoverView];
    
}

- (void)setUpCoverView
{
    UIView *coverView = [[UIView alloc] initWithFrame:self.view.bounds];
    coverView.backgroundColor = [UIColor colorWithRed:236/255.0 green:236/255.0 blue:236/255.0 alpha:1.0];
    
    UILabel *label = [[UILabel alloc] init];
    label.x = 10;
    label.y = 10;
    label.width = 250;
    label.height = 20;
    label.font = [UIFont systemFontOfSize:16];
    label.text = @"这附近比较冷清未发现任何藏友";
    label.textColor = [UIColor colorWithRed:153/255.0 green:153/255.0 blue:153/255.0 alpha:1.0];
    [coverView addSubview:label];
    [self.view addSubview:coverView];
}

- (void)backToPre
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 15;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    GQProfileNearCell *cell = [tableView dequeueReusableCellWithIdentifier:kFlag forIndexPath:indexPath];
    return cell;
}

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 60;
}

@end
